  function outputExcel(tableObject, offColInt) 
    {
     try 
     {
         var excelObjectApplication = new ActiveXObject("Excel.Application");
     }
      catch (e) 
      {
      alert("\u6d4f\u89c8\u5668\u5f53\u524d\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u6b64\u64cd\u4f5c\uff01");
      }
      excelObjectApplication.visible = true;
     excelObjectApplication.DisplayAlerts = false;
       var xlBook = excelObjectApplication.Workbooks.Add;
      //var xlBook = excelObjectApplication.Workbooks.Add();
      //var excelObjectActiveSheet = xlBook.ActiveSheet;
      var excelObjectActiveSheet = xlBook.Worksheets(1);
      
      excelObjectActiveSheet.Range(excelObjectActiveSheet.Cells(1,1),excelObjectActiveSheet.Cells(1,10)).Interior.ColorIndex=8;
      excelObjectActiveSheet.Columns("C:H").ColumnWidth =18;
      var rowLength = tableObject.rows.length;
      var colLength = tableObject.rows[0].cells.length;
      colLength -= parseInt(offColInt);
      for (i = 0; i < rowLength; i++) {
      if(colLength==0)
      excelObjectActiveSheet.Cells(i + 1, j + 1).value = "'" + tableObject.rows[i].cells[j].innerText;
      else{
      for (j = 0; j < colLength; j++) {
      excelObjectActiveSheet.Cells(i + 1, j + 1).value = "'" + tableObject.rows[i].cells[j].innerText;
      }
      }
      }
    }
